package com.qcxy.gzy.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

import com.qcxy.gzy.activity.base.HiddenActivity;

public class ProgramActivity extends HiddenActivity implements OnClickListener{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_program);
		
		findViewById(R.id.iv_back).setOnClickListener(this);
		findViewById(R.id.muscle_model).setOnClickListener(this);
		findViewById(R.id.fit_model).setOnClickListener(this);
		findViewById(R.id.lose_model).setOnClickListener(this);
		findViewById(R.id.custom_model).setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()){
		case R.id.iv_back: 
			ProgramActivity.this.finish();
			break;
			
		case R.id.muscle_model: 
			startActivity(new Intent(ProgramActivity.this,AddMuscleActivity.class));
			break;
			
		case R.id.fit_model: 
			startActivity(new Intent(ProgramActivity.this,BodyBuildingActivity.class));
			break;
			
		case R.id.lose_model: 
			startActivity(new Intent(ProgramActivity.this,LossFatActivity.class));
			break;
			
		case R.id.custom_model: 
			startActivity(new Intent(ProgramActivity.this,FitnessCustomSetActivity.class));
			break;
	
		default:
			break;
		}
	}
}
